//
//  LGKNoteRespondeModel.m
//  LGKNote
//
//  Created by 刘亚军 on 2023/5/26.
//

#import "LGKNoteRespondeModel.h"
#import "LGKConst.h"

@implementation LGKNoteRespondeModel
+ (LGKNoteRespondeModel *)responseModelWithData:(NSDictionary *)data{
    LGKNoteRespondeModel *model;
    if (IsArrEmpty(data)) {
        model = [[LGKNoteRespondeModel alloc] init];
        model.Code = -2;
        model.Message = @"参数有误";
    }else{
        model = [LGKNoteRespondeModel mj_objectWithKeyValues:data];
    }
    return model;
}

- (BOOL)isSuccess{
    if (self.Code == 1) {
        return YES;
    }
    return NO;
}
@end
